package model

type Order struct {
	Id         string
	CreateTime string
	Tcount     int
	Tamout     float64
	Statu      int //0表示没有发货，1表示已发货，2表示交易结束
	UserId     int
}

func (this *Order) NoSend() bool {
	return this.Statu == 0
}

func (this *Order) Sended() bool {
	return this.Statu == 1
}

func (this *Order) Completed() bool {
	return this.Statu == 2
}
